package com.itany.corejava.day09;

public enum SeasonC {
    SPRING(1),
    SUMMER(2),
    AUTUMN(3),
    WINTER(4);
    private int value;

    SeasonC(int value) {
        this.value = value;
    }

    public int getValue() {
        return value;
    }

    @Override
    public String toString() {
        switch (this) {
            case SPRING :
                return "春天";
            case SUMMER :
                return "夏天";
            case AUTUMN :
                return "秋天";
            case WINTER :
                return "冬天";
        }
        return null;
    }
}
